﻿using System.ComponentModel;

namespace Service.Auth.Model.Enum
{
    public enum GrantTypeEnum
    {
        /// <summary>
        /// passwordValueObject,密码验证模式
        /// </summary>
        [Description("密码验证模式")]
        ResourceOwnerPassword = 1,
        /// <summary>
        /// client_credentials,客户端验证模式
        /// </summary>
        [Description("客户端验证模式")]
        ClientCredentials = 2,
        /// <summary>
        /// 密码、客户端复合模式
        /// </summary>
        [Description("密码、客户端复合模式")]
        ResourceOwnerPasswordAndClientCredentials = 3,
        /// <summary>
        /// 长期机密客户端访问模式(OpenId协议)
        /// </summary>
        [Description("长期机密客户端访问模式(OpenId协议)")]
        Hybrid = 4,
        /// <summary>
        /// 客户端、长期机密客户端访问模式(OpenId协议) 复合模式
        /// </summary>
        [Description("客户端、长期机密客户端访问模式(OpenId协议) 复合模式")]
        HybridAndClientCredentials = 5
    }
}
